package com.homestead.constant;

/**
 * redis 缓存用 key
 * @author HanBin_Yang
 * @since 2021/5/30 8:50
 */
public class RedisCacheKeyConstant {
    /**
     * 营销缓存key前缀
     */
    private static final String PROMOTION_CACHE_KEY_PREFIX = "promotion:cache:";
    /**
     * couponTheme相关key前缀
     */
    private static final String COUPON_THEME_PREFIX = "couponTheme:";
    /**
     * couponTheme 数据库缓存
     */
    public static final String COUPON_THEME_DATABASE = PROMOTION_CACHE_KEY_PREFIX + COUPON_THEME_PREFIX + "id:exist:";
    /**
     * 数据库不存在的 couponThemeId
     */
    public static final String NON_EXIST_COUPON_THEME_ID = PROMOTION_CACHE_KEY_PREFIX + COUPON_THEME_PREFIX + "id:nonExist:";
    /**
     * couponTheme数据库缓存 -> bloomFilter key
     */
    public static final String COUPON_THEME_DATABASE_BLOOM_FILTER = PROMOTION_CACHE_KEY_PREFIX + COUPON_THEME_PREFIX + "bloomFilter";

    /**
     * coupon_theme_adapt_org数据库缓存
     */
    public static final String COUPON_THEME_ADAPT_ORG_IDS = PROMOTION_CACHE_KEY_PREFIX + COUPON_THEME_PREFIX + ":adaptOrgIds:themeId:";

}
